package com.ruoyi.orders.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约订单对象 orders
 * 
 * @author shz
 * @date 2024-07-17
 */
@Data
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 预订用户姓名 */
    @Excel(name = "预订用户姓名")
    private String username;

    /** 预订用户电话 */
    @Excel(name = "预订用户电话")
    private String phone;

    /** 培训费 */
    @Excel(name = "培训费")
    private Long price;

    /** 预订用户身份证 */
    @Excel(name = "预订用户身份证")
    private String idcard;

    /** 支付时间 */
    @Excel(name = "支付时间")
    private String gmtPayment;

    /** 买家在支付宝唯一id */
    @Excel(name = "买家在支付宝唯一id")
    private String aliPaytradeNo;

    /** 基地名 */
    @Excel(name = "基地名")
    private String baseName;

    /** 本次行程主题 */
    @Excel(name = "本次行程主题")
    private String tripName;

    /** 本次行程详情 */
    @Excel(name = "本次培训学时")
    private Integer studyCourse;

    private Integer pid;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getStudyCourse() {
        return studyCourse;
    }

    public void setStudyCourse(Integer studyCourse) {
        this.studyCourse = studyCourse;
    }
    @Excel(name = "本次培训完成情况")
    private Boolean status;

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    /** 发布人 */
    @Excel(name = "发布人")
    private String groupUserName;

    /** 发布人电话 */
    @Excel(name = "发布人电话")
    private String groupPhone;

    /** 外键 */
    private Long uid;
    private Long tid;

    /** 行程日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "行程日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setGmtPayment(String gmtPayment) 
    {
        this.gmtPayment = gmtPayment;
    }

    public String getGmtPayment() 
    {
        return gmtPayment;
    }
    public void setAliPaytradeNo(String aliPaytradeNo) 
    {
        this.aliPaytradeNo = aliPaytradeNo;
    }

    public String getAliPaytradeNo() 
    {
        return aliPaytradeNo;
    }
    public void setBaseName(String baseName) 
    {
        this.baseName = baseName;
    }

    public String getBaseName() 
    {
        return baseName;
    }
    public void setTripName(String tripName) 
    {
        this.tripName = tripName;
    }

    public String getTripName() 
    {
        return tripName;
    }

    public void setGroupUserName(String groupUserName) 
    {
        this.groupUserName = groupUserName;
    }

    public String getGroupUserName() 
    {
        return groupUserName;
    }
    public void setGroupPhone(String groupPhone) 
    {
        this.groupPhone = groupPhone;
    }

    public String getGroupPhone() 
    {
        return groupPhone;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("price", getPrice())
            .append("idcard", getIdcard())
            .append("gmtPayment", getGmtPayment())
            .append("aliPaytradeNo", getAliPaytradeNo())
            .append("baseName", getBaseName())
            .append("tripName", getTripName())
            .append("tripContent", getStudyCourse())
            .append("groupUserName", getGroupUserName())
            .append("groupPhone", getGroupPhone())
            .append("uid", getUid())
            .append("startDate", getStartDate())
            .toString();
    }
}
